<template>
  <div>
    <div class="pro-img">
      <img class="auto-img" :src="product.smallImg" alt="">
    </div>
    <div class="user">
      <div class="user-img"><img :src="item.i" alt="头像"></div>
      <div class="user-name">{{item.name}}</div>
    </div>
    <div class="dianzhang">
      <div class="dz-img"><van-icon name="good-job-o" /></div>
      <div class="dz-num">668</div>
    </div>
  </div>
</template>

<script>
export default {
  name: "ProItem",

  props: {
    //单个商品数据
    product: {
      type: Object,
      default() {
        return {};
      }
    }
  }
};
</script>

<style lang="less" scoped>
.pro-img {
  background-color: #e8e8e8;
}

.pro-name {
  font-size: 14px;
  color: #444;
  margin-top: 10px;
}

.pro-enname {
  font-size: 12px;
  color: #999;
}

.pro-price {
  color: #0c34ba;
  font-weight: bold;
  font-size: 14px;
  margin-top: 5px;
}
</style>